package cn.yunhe.beans;

import java.io.Serializable;

public class User implements Serializable {

    /**
     * 用户id
     */
    private int uid;

    /**
     * 用户姓名
     */
    private String uname;

    /**
     * 用户密码
     */
    private String upwd;

    /**
     * 用户手机号
     */
    private String uphone;

    /**
     * 用户性别
     */
    private String sex;

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUpwd() {
        return upwd;
    }

    public void setUpwd(String upwd) {
        this.upwd = upwd;
    }

    public String getUphone() {
        return uphone;
    }

    public void setUphone(String uphone) {
        this.uphone = uphone;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"uid\":")
                .append(uid);
        sb.append(",\"uname\":\"")
                .append(uname).append('\"');
        sb.append(",\"upwd\":\"")
                .append(upwd).append('\"');
        sb.append(",\"uphone\":\"")
                .append(uphone).append('\"');
        sb.append(",\"sex\":\"")
                .append(sex).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
